home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Texteditors
/
Origami
/
bindings
/
origami.keys
< prev
next >
Wrap
Text File
|
1996-09-26
|
9KB
|
274 lines
;OCL{{{}}}
;OCL{{{ names and modes
( defbinding BasicOrigami )
( overload-prefix ( mori ) )
( defmodes ( edit folding ) )
;OCL}}}
;OCL{{{ menues
( defvar ( x y ) )
;OCL{{{ init-x-menu
( defmac init-x-menu ( set x 2 ) )
;OCL}}}
;OCL{{{ edit-menu
( deffun edit-menu
( init-x-menu
set y 1
write-area x y ( " "C "- "W " " "o "p "e "n "- "f "o "l "d " " "C "- "E " " "u "p " " " " "C "- "R " " "c "l "o "s "e "- "f "o "l "d " " " "C "- "Q " "q " " " " "q "u "i "t " " " " " " " " " " " " " " " " " " " )
set y 2
write-area x y ( " "C "- "S " " "b "a "c "k "w "a "r "d " " " " " " " " " " " " " " "C "- "D " " "f "o "r "w "a "r "d " " " " " " "C "- "Q " "s " " " " "s "a "v "e "- "f "i "l "e " " " " " " " " " " " " " " )
set y 3
write-area x y ( " "C "- "L " " "d "e "l ". "- "l "i "n "e " " "C "- "X " " "d "o "w "n " " "C "- "U " " "u "n "f "o "l "d " " " " " " " "C "- "H " " " " " " "d "e "l "e "t "e "- "p "r "e "v "i "o "u "s "- "c "h "a "r " " " )
set y 4
write-area x y ( "< "< "E "d "i "t "> "> " " " " " "e "s "c " "e "s "c " " "F "o "l "d "i "n "g " " " " " " " " " " " " " " " " " "C "- "Q " "C "- "Q " " "r "e "f "r "e "s "h "- "s "c "r "e "e "n " " " " " " " " " )
set x 999
write-area x y ( " )
)
)
;OCL}}}
;OCL{{{ fold-menu
( deffun fold-menu
( init-x-menu
set y 1
write-area x y ( " "C "- "W " " "o "p "e "n "- "f "o "l "d " " "C "- "E " " "u "p " " " " "C "- "R " " "c "l "o "s "e "- "f "o "l "d " " " "f " " " " " " " " "f "o "l "d "- "s "e "l "e "c "t "i "o "n " " " " " " " " " )
set y 2
write-area x y ( " "C "- "S " " "b "a "c "k "w "a "r "d " " " " " " " " " " " " " " "C "- "D " " "f "o "r "w "a "r "d " " " " " " "l " " " " " " " " "s "e "t "- "l "a "n "g "u "a "g "e " " " " " " " " " " " )
set y 3
write-area x y ( " " " " " " " " " " " " " " " " " "C "- "X " " "d "o "w "n " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " )
set y 4
write-area x y ( "< "< "F "o "l "d "> "> " " " " " "e "s "c " "e "s "c " " "E "d "i "t "i "n "g " " " " " " " " " " " " " " " " " "C "- "Q " "C "- "Q " " "r "e "f "r "e "s "h "- "s "c "r "e "e "n " " " " " " " " " )
set x 999
write-area x y ( " )
)
)
;OCL}}}
;OCL{{{ lang-menu
( deffun lang-menu
( init-x-menu
set y 1
write-area x y ( " "S "e "l "e "c "t " "a " "l "a "n "g "u "a "g "e " "b "y ": " " " " "t "y "p "i "n "g " "t "h "e " "f "i "r "s "t " "c "h "a "r "a "c "t "e "r " " " " " " " " " " " " " " " " " " " " " " " " " " )
set y 2
write-area x y ( " " " " " " " " " " " " " " " " " " " " " " " "o "r " "m "o "v "e " "w "i "t "h " "C "- "S "/ "C "- "D " "a "n "d " "r "e "t "u "r "n " " " " " " " " " " " " " " " " " " " " " " " " )
set y 3
write-area x y ( " "U "s "e "r " "p "r "o "m "p "t "s " "f "o "r " "n "e "w " "b "e "g "i "n "- " "a "n "d " "e "n "d "- "c "o "m "m "e "n "t " "p "a "t "t "e "r "n "s ", "I "n "m "o "s " "i "s " "a " "b "i "n "a "r "y " "f "o "r "m "a "t )
set y 4
write-area x y ( " "S "e "t " "f "o "l "d " "l "a "n "g "u "a "g "e " "t "o " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " )
set x 999
write-area x y ( " )
)
)
;OCL}}}
( undeclare ( x y ) )
;OCL}}}
;OCL{{{ read-newfile-macro
( defvar ( startup ) )
( deffun rnfm
( if not(startup)
( set-area 4
delete-mode-autosave
delete-mode-hash-shift
set-file-unchanged
edit-menu
)
fi
delete-mode-view
delete-mode-overwrite
add-mode-position
if not(startup)
( set startup 1
message-exit ( "[ "emacs " "cursormotion " "( "C-[BFNP] ") " "also " "supported "! "] )
)
fi
)
)
( read-newfile-macro rnfm )
( undeclare ( startup rnfm ) )
;OCL}}}
;OCL{{{ mori-exit-origami
( defvar ( eo-used ) )
( deffun mori-exit-origami
( if test-file-changed
( if <>(-(key-count 1) eo-used)
( set eo-used key-count
message-exit
( "[ "File " "changed, " "use " "quit " "again, " "to " "ignore " "changes! "] )
)
else
( set-file-unchanged )
fi
)
fi
if test-file-changed
( message-exit ( "[ "File " "changed! "] ) )
fi
exit-buffer
)
)
;OCL}}}
;OCL{{{ folding
@lib regions
;OCL{{{ start-folding
( deffun start-fold
( local
( modify-behaviour )
( set modify-behaviour -2
create-fold
fold-menu
folding
set-start-mark
set-end-mark
)
)
)
;OCL}}}
;OCL{{{ end-folding
( deffun end-fold
( if and(test-folding <>(ocl-argument 0)) ( create-fold ) fi
edit-menu
edit
)
)
;OCL}}}
;OCL{{{ fold
( deffun fold
( set-end-mark
end-fold
if and(=(start-x end-x) =(start-y end-y))
( create-fold create-fold )
else
( fold-region
if folderr
( message ("Cannot " "fold! ) )
fi
)
fi
)
)
;OCL}}}
;OCL{{{ mori-set-language
( defvar ( key ) )
( deffun mori-set-language
( if and(test-folding <>(ocl-argument 0)) ( create-fold ) fi
lang-menu
set-language
edit
while in-prompt
( prompt-char-counter key ()
insert-ascii key
)
edit-menu
)
)
( undeclare ( key ) )
;OCL}}}
( key-not-bound-macro end-fold )
( abort-macro end-fold )
;OCL}}}
;OCL{{{ mouse
@lib go-mouse
;OCL}}}
;OCL{{{ bindings
;OCL{{{ get alias
@use ( alias ) @lib origami-fun/terms @use not( alias )
;OCL}}}
( keybind abort ( C-C ) )
;OCL{{{ edit
( mode edit
( terminal
( @use ( terms ) @lib origami-fun/terms @use not( terms ) )
( keybind center-and-redraw-display ( C-Q C-Q ))
( keybind center-and-redraw-display ( $refresh ))
( keybind next-line ( C-X ) )
( keybind next-line ( C-N ) )
( keybind next-line ( $down ) )
( keybind previous-line ( C-E ) )
( keybind previous-line ( C-P ) )
( keybind previous-line ( $up ) )
( keybind forward-character ( C-D ) )
( keybind forward-character ( C-F ) )
( keybind forward-character ( $right ) )
( keybind backward-character ( C-S ) )
( keybind backward-character ( C-B ) )
( keybind backward-character ( $left ) )
( keybind open-fold ( C-W ) )
( keybind open-fold ( $open ) )
( keybind close-fold ( C-R ) )
( keybind close-fold ( $close ) )
( keybind newline-and-indent ( C-J ) )
( keybind newline-and-indent ( C-M ) )
( keybind delete-previous-character ( C-H ) )
( keybind delete-line ( C-L ) )
( keybind delete-line ( $delline ) )
( keybind mori-exit-origami ( C-Q "q ) )
( keybind mori-exit-origami ( $exit ) )
( keybind save-file ( C-Q "s ) )
( keybind save-file ( $save ) )
( keybind start-fold ( C-[ C-[ ) )
( keybind start-fold ( $select ) )
( keybind unfold-fold ( C-U ) )
)
)
;OCL}}}
;OCL{{{ folding
( mode folding
( terminal
( @use ( terms ) @lib origami-fun/terms @use not( terms ) )
( keybind center-and-redraw-display ( C-Q C-Q ))
( keybind center-and-redraw-display ( $refresh ))
( keybind next-line ( C-X ) )
( keybind next-line ( C-N ) )
( keybind next-line ( $down ) )
( keybind previous-line ( C-E ) )
( keybind previous-line ( C-P ) )
( keybind previous-line ( $up ) )
( keybind forward-character ( C-D ) )
( keybind forward-character ( C-F ) )
( keybind forward-character ( $right ) )
( keybind backward-character ( C-S ) )
( keybind backward-character ( C-B ) )
( keybind backward-character ( $left ) )
( keybind open-fold ( C-W ) )
( keybind open-fold ( $open ) )
( keybind close-fold ( C-R ) )
( keybind close-fold ( $close ) )
( keybind fold ( "f ) )
( keybind mori-set-language ( "l ) )
)
( keybind - ( * ) )
)
;OCL}}}
( mouse-buttons go-mouse-position go-mouse-position go-mouse-position )
;OCL}}}
;OCL{{{ reference tree
@if-using ( )
;OCL{{{ settings
@start-reference-copy ref-sets
@ref-top-start-box ********
@ref-top-end-box
@ref-sub-start-box /-\||\-/
@ref-sub-end-box
@ref-menu 1 quit Quit ret Back next #(Next) prev Prev 1234567890
@ref-class-id 1
@ref-indent 3 78 4 2
@end-reference-copy
;OCL}}}
;OCL{{{ reference frame
@start-reference-copy ref
@ref-see-also See also in %s.
;OCL{{{ @ref-header BasicOrigami-Reference-Card
@ref-title BasicOrigami Reference-Card
@ref-author W. Stumvoll
This is the reference-file for `BasicOrigami', a beginners binding for the
folding-editor Origami.
;OCL}}}
;OCL{{{ BasicOrigami-Reference-Card
;OCL}}}
@end-reference-copy
;OCL}}}
;OCL{{{ reference frame
;OCL}}}
@fi
;OCL}}}